package com.itheima.pojo;

public class Employee {
    private Integer id; //员工id
    private String name; //员工姓名
    private Integer age; //员工年龄
    private String position; //员工职位

    //getter/setter
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    public String getPosition() {
        return position;
    }
    public void setPosition(String position) {
        this.position = position;
    }
    //重写toString（）
    @Override
    public String toString() {
        return "employee [id=" + id + ",name=" + name + ",age=" + age + ",position=" +position + "]";
    }
}

